cmake_minimum_required(VERSION 3.10)

find_package(Boost COMPONENTS date_time)

include_directories($ENV{DM2016_DEV}/tinyxml/inc ${Boost_INCLUDE_DIRS})
include_directories($ENV{DM2016_DEV})

aux_source_directory(src SRC)

add_library(oslog SHARED ${SRC}) 

if(WIN32)
target_link_libraries(oslog dmos misc tinyxml json ${Boost_LIBRARIES})
else()
target_link_libraries(oslog dmos misc tinyxml json ${Boost_LIBRARIES} rt)
endif()